/* typehints:start */
import { Application } from "../application";
/* typehints:end */

/** @type {Application} */
export let GLOBAL_APP = null;

export function setGlobalApp(app){
  assert(!GLOBAL_APP, '创建程序两次了');
  GLOBAL_APP = app;
}